package com.huanzhidadi.java8inaction.predicate.impl;

import com.huanzhidadi.java8inaction.model.Apple;
import com.huanzhidadi.java8inaction.predicate.ApplePredicate;

/**
 * 对重的苹果进行筛选
 */
public class AppleHeavyWeightPredicate implements ApplePredicate {
    @Override
    public boolean test(Apple apple) {
        return apple.getWeight() > 150;
    }
}
